package com.hdaccp.letting2.service.impl;

import com.hdaccp.letting2.entity.Userinfo;
import com.hdaccp.letting2.service.UserInfoService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Test {
    public static void main(String[] args) throws Exception{
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[] {"provider.xml","spring-dao.xml"}) ;

        applicationContext.start();

        System.in.read() ;

       /* UserInfoService userInfoService = (UserInfoService) applicationContext.getBean("userInfoServiceImpl") ;
        List<Userinfo> list = userInfoService.query() ;
        for(Userinfo userinfo : list){
            System.out.println(userinfo.getUsername());
        }*/
    }
}
